﻿using System;
using Report.Entity;
using Report.IRepository;
using System.Linq.Expressions;

namespace Report.Repository
{
    public class PositionDAL : BaseDAL<仓库仓位>, IBase<仓库仓位>
    {
        public 仓库仓位 SearchByPosition(string position){
            position = position.Substring(1);
            Expression<Func<仓库仓位, bool>> where = (p => p.仓位编号 == position && p.盘点 == false);
            仓库仓位 entity = GetByWhere(where);
            return entity;
        }
    }
}
